Set the working directory to the Replication folder.

Chapter 1 folder:

Chapter 1 - Figure.R: 
	Purpose: R script to produce Figure 1: Number of Studies Using the Same Country-Year Observations (Keeping Only Articles Published After 2010, and Data Covering European Countries from 1969 to 2009)
	Dependencies: fig1_literature_sample.RDS (containing the literature sample to illustrate the sample variability)
	Output: HeatMap_2009.pdf (Heatmap figure, based on the articles included in fig1_literature_sample.RDS)

Chapter 3 folder:

Chapter 3 - Temporal Dynamics.do:
	Purpose: Stata file to estimate stability in individual and party-level perceptions in the UK
	Dependencies: analyticalSample.dta and uk_panel.dta (containing the UK Internet Panel dataset)
	Output: UK.dta (for use in generating Figure 5 in the Chapter 3 - Figures.R file)

Chapter 3 - Sample Means.do: 
	Purpose: Stata file to provide basic summary of missingness in the Sophia dataset
	Dependencies: MASTER.dta and analyticalSample.dta

Chapter 3 - Model Specification of Stability and Change.do: 
	Purpose: Stata file to estimate different time series specifications and plot the effects
	Dependencies: analyticalSample.dta
	Output: we create three txt files containing the output in this file: DynSim, Estimates, and Total

Chapter 3 - Figures.R: 
	Purpose: R script file to reproduce the figures in Chapter 3
	Dependencies: files from the stability calculations (uk.dta), time series specifications (DynSim and Estimates).
	Output: generates the figures for Chapter 3


Chapter 4 folder:
	
Chapter 4 - Models.R
	Purpose: estimate the models in Chapter 4
	Dependencies: chapter4data.txt
	Output: generates the output shown in Tables 7-8 and Figure 8


Supplemental Information folder:

Appendix B - Data Distribution.R:
	Purpose: R script to reproduce all figures and tables included in Appendix B "Harmonization Process, Data, and Variables."
	Dependencies: Master.dta (this is the master data). 
	Output: Generates Figures B1, B2, B3, and Table B1. 

Appendix D - Persistence Rates.do:
	Purpose: Stata file to estimate persistence rates across categories of respondents using the UK Internet Panel
	Dependencies: uk_panel.dta (this is in the Chapter 3 folder)
	Output: generates the results (and figure) in Appendix D